import { ApiProperty, PartialType } from '@nestjs/swagger';
import { CreateCarDto } from './create-car.dto';
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';

export class UpdateCarDto extends PartialType(CreateCarDto) {
  @IsNotEmpty()
  @ApiProperty({ description: '修改车辆的id' })
  id: number;

  @IsString()
  @IsOptional()
  @ApiProperty({ description: '主ID' })
  primary_id: string;
}
